import java.util.Scanner;

public class Text {
    public static void main(String[] args) {
        int a,b,ret1;
        float c,d,e,ret2;
        Scanner scanner =new Scanner(System.in);
        a=scanner.nextInt();
        b=scanner.nextInt();
        ret1=sum(a,b);
        System.out.println(ret1);
        c=scanner.nextFloat();
        d=scanner.nextFloat();
        e=scanner.nextFloat();
        ret2=sum(c,d,e);
        System.out.println(ret2);
    }
    public static int sum(int a,int b){
        return a+b;
    }
    public static float sum(float a,float b,float c){
        return a+b+c;
    }
}
